class NP
NP,
non-deterministic polynomial time,
NP puzzle
#complexity_theory
#complexity_theory
Definition (class )
A language is in if there exists a polynomial and a polynomial-time TM (called the verifier for ) such that for every ,
If and satisfy , then we can call a certificate for (with respect to language , machine ). Also known in some texts as witness.
In other words, is the set of all languages such that there exists a polynomial-time algorithm with .
(there is a polynomial-time algorithm to verify "yes" instances given the appropriate certificate)
Definition (NP puzzle)
An NP puzzle consists of a poly-time computable relation . Think of as a puzzle or statement, and as a solution or witness. The relation tests if is a good solution for the problem and outputs (accept) or (reject).
Notes
- as it is possible that is (i.e. can be empty string)
- In describing PCP (as every has a ), it is useful to describe as follows: the language iff there is polynomial-time deterministic verifier and arbitrarily powerful prover such that
- completeness: , can write proof of length that accepts
- soundness: , no matter what -length proof writes, rejects.
- (see: polynomial hierarchy)
Theorem (in terms of NTIME)
(see NTIME)
see also
- NTIME
- can be considered in relation to a NDTM, which is how it was originally defined
- compare to coNP
- proof system, interactive proof system (NP may be considered a very simple IPS)
- average hard NP puzzle
References
- S. Arora, B. Barak. Computational Complexity: A Modern Approach, Cambridge University Press, 2009, p. 39.
- https://www.cs.williams.edu/~shikha/teaching/spring20/cs256/lectures/Lecture22.pdf
- https://baike.baidu.com/item/NP完全问题/4934286
- https://webdocs.cs.ualberta.ca/~zacharyf/courses/complexity_2019/notes/complexity-w19-lec03.pdf
- https://math.stackexchange.com/questions/2334429/what-is-the-difference-between-np-and-conp
- https://courses.cs.washington.edu/courses/cse533/05au/pcp-theorem.pdf
- https://www.khoury.northeastern.edu/home/wichs/class/crypto-fall17/lecture7.pdf